﻿namespace EFS.RC.CC.Presences.EndPoints.OfficeService
{
	/// <summary>
	/// DirectDial Office Service EndPoint Presence
	/// </summary>
	class DirectDial : EFS.RC.CC.Presences.Application<EFS.RC.CC.Config.DirectDialDeployment, EFS.RC.CC.Applications.EndPoints.OfficeService.DirectDial>
	{
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="endPointsPresencesRegistrar"></param>
		/// <param name="gateEndPointDeployment"></param>
		public DirectDial(EFS.RC.CC.Presences.EndPoints.Registrar endPointsPresencesRegistrar, EFS.RC.CC.Config.DirectDialDeployment gateEndPointDeployment)
			: base(endPointsPresencesRegistrar, gateEndPointDeployment)
		{
		}

		/// <summary>
		/// Create application instance
		/// </summary>
		/// <param name="applicationEndpointSettings"></param>
		/// <returns></returns>
		protected override EFS.RC.CC.Applications.EndPoints.OfficeService.DirectDial InstanceEndPointApplication(Microsoft.Rtc.Collaboration.ApplicationEndpointSettings applicationEndpointSettings)
		{
			// set default
            applicationEndpointSettings.IsDefaultRoutingEndpoint = true;

			// make new
			return new EFS.RC.CC.Applications.EndPoints.OfficeService.DirectDial(applicationEndpointSettings, this);
		}
	}
}
